package oop11.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PrinterTest {
    public static void main(String[] args) {
        Printer p=new Printer("惠普炫彩900");
        p.setInk(new ColorFulInk());
        p.setPaper(new A4());
        p.doPrint("大家好，你是渣渣辉");
        System.out.println("换纸。。。");
        p.setPaper(new B5());
        p.doPrint("hello,酷狗");
    }
}
